package com.sfj.system.controller;

import com.kaka.starter.control.dto.ResultBean;
import com.sfj.system.entity.FuncEntity;
import com.sfj.system.service.func.FuncQueryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author kaka
 * @Date 2025/06/30
 */
@RestController
@RequestMapping("func")
@Api(tags = "菜单管理")
public class FuncController {

    @Autowired
    private FuncQueryService funcQueryService;
    @PostMapping("/query")
    @ApiOperation(value = "查询所有菜单", notes = "查询所有菜单")
    public ResultBean query(@RequestBody FuncEntity funcEntity) {
        return ResultBean.succeed(funcQueryService.query(funcEntity));
    }
}
